<?xml version="1.0" encoding="UTF-8"?>
<ui:composition
	xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://xmlns.jcp.org/jsf/facelets"
	xmlns:f="http://xmlns.jcp.org/jsf/core"
	xmlns:h="http://xmlns.jcp.org/jsf/html"
	xmlns:p="http://primefaces.org/ui"
	xmlns:c="http://xmlns.jcp.org/jsp/jstl/core"
>	
	<!--左侧-->
	<div class="my_left">
		<!--左侧div-->
		<div class=" user_management">
			<dl class="user_detailed">
				<dt>
					<img
						src="#{resource['img/first/in_tx.png']}"
						width="57"
						height="58"
					/>
				</dt>
				<dd>
					<h5>
						欢迎您，
						<span>
							<h:outputText value="#{userService.loginedUser.cnname}" />
							<span class="head-right">
								<div class="userslideDown">
									<a href="javascript:;" class="superUser"><i class="ico-tri"></i></a>
									<div class="slidedownBox">
										<h:form>			
											<ul>
												<li>													
													<p:commandLink value="注销" actionListener="#{logout.submit}" action="/index.xhtml?faces-redirect=true" ajax="false" ></p:commandLink>
												</li>
											</ul>
										</h:form>
									</div>
								</div>
							</span>
						</span>						
					</h5>
					<p class="user-logintime">
						当前时间：<br/>
						<span>
							<h:outputText value="#{currentDatetime}">
								<f:convertDateTime pattern="yyyy-MM-dd HH:mm"/>
							</h:outputText>
						</span>
					</p>
				</dd>
			</dl>
		</div>
		<div class="item-listbox ">
			<p:button value="新手引导" href="#" onclick="JavaScript:introJs().start();"></p:button>
			
			<ul>
				<li>
					<p:link outcome="/index.xhtml" value="平台首页" target="_blank"></p:link>
				</li>
				<li data-step="1" data-intro="您好，如需发布采购公告，请点击页面左侧菜单栏的“发布新公告”按钮，按照提示步骤进行信息填写，请注意带有红色星号的内容为必填项。"  data-position='left'>
					<p:link outcome="/business/buyer/BulletinEdit.xhtml" rendered="#{ userService.loginedUser.auditted}" onclick="return checkUserAudited('#{userService.findLoginedUser().auditted}');" value="发布新公告"></p:link>
				</li>
				<div data-step="2" id="secondStep" data-intro=""  data-position='bottom'>

					<li>
						<p:link outcome="/business/buyer/AppliedBulletinList.xhtml" value="已发布的公告"></p:link>					
					</li>
					<li>
						<p:link outcome="/business/buyer/UnauditBulletinList.xhtml" value="待审核的公告"></p:link>					
					</li>
					<li>
						<p:link outcome="/business/buyer/AuditSuccessBulletinList.xhtml" value="已成功审核的公告"></p:link>					
					</li>
					<li>
						<p:link outcome="/business/buyer/AuditFailedBulletinList.xhtml" value="审核失败的公告"></p:link>					
					</li>
				</div>
				<script>
					$(function(){
						var secondhtml = "<p>您好，请及时查看您已提交的公告的审核发布情况。请选择左侧菜单栏中的以下按钮：</p>"
							secondhtml += "<p>1、待审核的公告：指的是已提交但还未审核的公告。</p>"
							secondhtml += "<p>2、已成功审核的公告：指的是已提交并审核通过的公告。</p>"
							secondhtml += "<p>3、审核失败的公告：指的是已提交但被管理员审核未通过的公告。</p>"
							secondhtml += "<p>4、已发布的公告：指的是已经发布到网站的公告。</p>"
						$("#secondStep").attr("data-intro",secondhtml);

						var thirdhtml = "<p>您好，如需对已经完成选取的公告进行查看和操作，请点击左侧菜单栏的以下按钮：</p>"
							thirdhtml += "<p>1、已完成选取的公告：可进行备案和打印确认书。</p>"
							thirdhtml += "<p>2、已成交公告：可对中介进行评价。</p>"
							thirdhtml += "<p>3、可申请结算的公告：申请结算后，可对公告进行评价。</p>"
							thirdhtml += "<p>4、登记备案：可查看备案情况。</p>"
							thirdhtml += "<p>5、流拍项目：可查看流拍的公告。</p>"
						$("#thirdStep").attr("data-intro",thirdhtml);			
					});

				</script>
				<div data-step="3" id="thirdStep" data-intro=""  data-position='bottom'>
				
					<li>
						<p:link outcome="/business/buyer/OverBulletinList.xhtml" value="已完成选取的公告"></p:link>					
					</li>
					<li>
						<p:link outcome="/business/buyer/buyerTaskList.xhtml" value="择优选取评分">
							<f:param name="processKey" value="bestChooseAudit"></f:param>
						</p:link>
					</li>
					<li>
						<p:link outcome="/business/buyer/SuccessBulletinList.xhtml" value="已成交公告"></p:link>
					</li>
					<li>
						<p:link outcome="/business/buyer/ApplingDoneTradeList.xhtml" value="可申请结算的公告"></p:link>					
					</li>
					<ui:remove>
						<li>
							<p:link outcome="/business/buyer/BulletinContractList.xhtml" value="备案登记"></p:link>
						</li>
					</ui:remove>
					<li>
						<p:link outcome="/business/buyer/PassedBulletinList.xhtml" value="流拍的公告"></p:link>					
					</li>
					<li>
						<p:link outcome="/business/buyer/process/BuyerCancelApplyTaskList.xhtml?processKey=applyCancelAudit" value="被驳回的报名申请"></p:link>					
					</li>
					
				</div>	
				<div data-step="4" data-intro="您好，采购方注册时审核失败的信息可在此栏目中进行修改。">
					<li >
						<p:link outcome="/business/buyer/unitInfo.xhtml" value="采购方信息">
							<f:param name="self" value="true"></f:param>
						</p:link>					
					</li>
					<li  >
						<p:link outcome="/business/buyer/ServiceBuyerAuditFailedInfo.xhtml?serviceBuyerId=#{userService.getLoginedUser().id}" value="采购方基本信息（审核未通过）" rendered="#{not empty userService.getLoginedUser().auditted  &amp;&amp; not userService.getLoginedUser().auditted}"></p:link>					
					</li>
				</div>				
				
			</ul>
		</div>
	</div>
</ui:composition>